import request from '@/utils/request'

export default {
  getCourseList(page,limit,dataQuery) {
    return request({
      url: `/eduservice/course/getPageCourseList/${page}/${limit}`,
      method: 'post',
      data: dataQuery
    })
  },
  addCourse(course) {
    return request({
      url: `/eduservice/course/addCourse`,
      method: 'post',
      data: course
    })
  },
  getCourseDetail(courseId) {
    return request({
      url: `/eduservice/course/getCourseDetail/${courseId}`,
      method: 'get'
    })
  },
  updateCourse(course) {
    return request({
      url: `/eduservice/course/updateCourse`,
      method: 'post',
      data: course
    })
  },
  deleteCourse(id) {
    return request({
      url: `/eduservice/course/deleteCourse/${id}`,
      method: 'post'
    })
  }
}
